Skip to content

refactor: make CommentView more amenable to subclassing.#8783

Merged
gonfunko merged 1 commit intoRaspberryPiFoundation:rc/v12.0.0from
gonfunko:subclassing
Feb 24, 2025
Merged

refactor: make CommentView more amenable to subclassing.#8783
gonfunko merged 1 commit intoRaspberryPiFoundation:rc/v12.0.0from
gonfunko:subclassing

Conversation

@gonfunko
Copy link
Contributor

The basics

This PR makes CommentView more compatible with subclassing. Scratch has a subclass, which it uses to provide a bubble-based comment view attached by a line to its parent block. This PR allows that subclass to implement ISelectable, which requires this.workspace to be public, and allows for it to correctly update its disposal state around additional disposal logic.

@gonfunko gonfunko merged commit 22dbd75 into RaspberryPiFoundation:rc/v12.0.0 Feb 24, 2025
11 checks passed
@gonfunko gonfunko deleted the subclassing branch February 24, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants